From: Varun Wadekar Date: Wed, 26 Apr 2017 20:48:19 +0000 (-0700) Subject: Tegra: enable 'ENABLE_ASSERTIONS' for all builds X-Git-Url: http://git.openwrt.org/%22https:/collectd.org/%22http:/www.crowdsec.net//%22https%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22https%22?a=commitdiff_plain;h=6c16918f7d511d972e32eefd2b442aa5ec6e0f86;p=project%2Fbcm63xx%2Fatf.git Tegra: enable 'ENABLE_ASSERTIONS' for all builds This patch changes the platform Makefile to set `ENABLE_ASSERTIONS` to 1 instead of the deprecated option `ASM_ASSERTION`. This also pulls in C assertions in release mode. Signed-off-by: Varun Wadekar --- diff --git a/plat/nvidia/tegra/platform.mk b/plat/nvidia/tegra/platform.mk index 5f7e8c8f..1f7a4dcd 100644 --- a/plat/nvidia/tegra/platform.mk +++ b/plat/nvidia/tegra/platform.mk @@ -30,14 +30,13 @@ SOC_DIR := plat/nvidia/tegra/soc/${TARGET_SOC} -# enable ASM_ASSERTION for the build -ASM_ASSERTION := 1 -$(eval $(call add_define,ASM_ASSERTION)) - # dump the state on crash console CRASH_REPORTING := 1 $(eval $(call add_define,CRASH_REPORTING)) +# enable assert() for release/debug builds +ENABLE_ASSERTIONS := 1 + # Disable the PSCI platform compatibility layer ENABLE_PLAT_COMPAT := 0